package com.demo2.controller;

import com.demo2.model.Student;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.stereotype.Controller;

@Controller
public class Read {

    @Autowired
    private Student student;

    public Student readStudent() {
        Student stu = student;
        return stu;
    }

}
